package com.adk.backend.mapper;

import com.adk.backend.entity.LxShipLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 发货日志Mapper接口
 */
@Mapper
public interface ShipLogMapper extends BaseMapper<LxShipLog> {
    
    /**
     * 根据订单ID查询发货日志（按发货次数排序）
     */
    List<LxShipLog> selectByOrderId(@Param("orderId") Long orderId);
    
    /**
     * 根据订单ID查询第一次发货日志
     */
    LxShipLog selectFirstByOrderId(@Param("orderId") Long orderId);
}

